/**
 * 
 */
package org.ikongfuzi.common;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Link;

/**
 * @author kelch
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true")
public class Rssinfo implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7653231859535595309L;
	@Persistent
	private Link url;
	@Persistent
	private String rssName;
	@PrimaryKey      @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)      
	private Long id;
	private String defaultFlag = "false";
	
	
	
	public Rssinfo(){
		super();
	}
	
	@Override
	public boolean equals(Object obj) {
		
		if (obj instanceof Rssinfo){
			Rssinfo tmp = (Rssinfo)obj;
			if(tmp.getId().longValue()==this.id.longValue()){
				return true;
			}else{
				return false;
			}
		}
		return false;
	}
	public Rssinfo(String rssName,Link url) {
		super();
		this.url = url;
		this.rssName = rssName;
	}
	public Link getUrl() {
		return url;
	}
	public void setUrl(Link url) {
		this.url = url;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getRssName() {
		return rssName;
	}
	public void setRssName(String rssName) {
		this.rssName = rssName;
	}

	public String getDefaultFlag() {
		return defaultFlag;
	}

	public void setDefaultFlag(String defaultFlag) {
		this.defaultFlag = defaultFlag;
	}

	

	
	

}
